/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package sharedObjects;

import java.io.Serializable;
import java.util.ArrayList;

/**
 *
 * @author Niclas
 */
public class Ships implements Serializable{
	public static int TYPE_SCHLACHTSCHIFF = 1;
	public static int TYPE_KREUZER = 2;
	public static int TYPE_ZERSTOERER = 3;
	public static int TYPE_UBOOTE = 4;
	public Integer shipType;
   public ArrayList<Field>shipfieldList = new ArrayList<Field>();
   
   
   public Field getFieldByFieldID(int id){
            for(int i = 0; i < shipfieldList.size();i++){
                    if (shipfieldList.get(i).getId() == id){
                        return shipfieldList.get(i);
                    }
                }
            
            
        return null;
            
        }
}
